﻿

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
public class UI_Animation_Title : MonoBehaviour
{
    public Action FadeDonEvent;
    public void FadeAnimation()
    {
        this.GetComponent<Image>().DOFade(0, 0.5f).OnComplete(() =>
        {
            if (FadeDonEvent != null) FadeDonEvent.Invoke();
        });
    }
}
